package educationaladministrationsystem.CSM.Mapper.Service.StudentAndTeacher.Student;

import educationaladministrationsystem.Class.Student;
import educationaladministrationsystem.CSM.Mapper.StudentAndTeacher.Student.StudentPersonDataMapper;
import educationaladministrationsystem.CSM.Mapper.Service.ServiceInterface.StudentAndTeacherInterface.Student.StudentPersonData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentStudentPersonDataService implements StudentPersonData {

    @Autowired
    StudentPersonDataMapper studentPersonDataMapper;

    @Override
    public Student getInformation(Integer studentId) {
        return studentPersonDataMapper.getInformation(studentId);
    }

    @Override
    public String getFacultiesNameByFacultiesId(String id) {
        return studentPersonDataMapper.getFacultiesNameByFacultiesId(id);
    }

    @Override
    public String getProfessionNameByProfessionId(String id) {
        return studentPersonDataMapper.getProfessionNameByProfessionId(id);
    }
}
